# -*- coding: utf-8 -*-

'''
打包应用
'''

import os

if __name__ == '__main__':
    print("packageAllGame start");
    basePath = "D:/work/newFramework/east-meeting-chess-server/trunk/east-meeting-chess-server/";



    random_input = input("请选择是否执行protobuf-protocol重新生成 ? 1 是  其他 否")

    if "1" == random_input:
        os.chdir(basePath+"protobuf-protocol");
        os.system("protobuf.bat");
        os.chdir(basePath + "protobuf-protocol/protos");
        os.system("protopack.bat");

    os.chdir(basePath);
    #打包
    os.system("mvn clean package");



    print("packageAllGame end");